-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support socket mode #42
base: master
Are you sure you want to change the base?
Conversation
Change looks good. Can you update the documentation ( |
OK, I'll work on it. |
@docmarionum1 Added some minimal documentation for the socket mode. |
@@ -102,6 +104,12 @@ to the query. The full usage is: | |||
- Follow the installation steps above to create a new slack app with all of the required permissions and event subscriptions. | |||
- The biggest change in requirements with the new version is the move from the [Real Time Messaging API](https://api.slack.com/rtm) to the [Events API](https://api.slack.com/apis/connections/events-api) which necessitates having a publicly-accessible url that Slack can send events to. If you are unable to serve a public endpoint, you can use [ngrok](https://ngrok.com/). | |||
|
|||
## Socket mode | |||
|
|||
To run the bot in socket mode, go to the app's "Socket Mode" page and enable it. Then add the app level token you got to environment variables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To run the bot in socket mode, go to the app's "Socket Mode" page and enable it. Then add the app level token you got to environment variables. | |
To run the bot in socket mode, go to the app's "Socket Mode" page and enable it. Then add the app level token you got to environment variables under the name `SLACK_APP_TOKEN`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a small suggested change for clarity in the readme. Otherwise looks good. Thanks!
Add support for socket mode in newer versions of bolt, which eliminates the need of a running http server.
It can be enabled through the command line switch "-s" or "--socket".